import service from '@/utils/request'

// @Tags ProductSpecColor
// @Summary 创建产品规格-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecColor true "创建产品规格-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productSpecColor/createProductSpecColor [post]
export const createProductSpecColor = (data) => {
  return service({
    url: '/productSpecColor/createProductSpecColor',
    method: 'post',
    data
  })
}

// @Tags ProductSpecColor
// @Summary 删除产品规格-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecColor true "删除产品规格-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecColor/deleteProductSpecColor [delete]
export const deleteProductSpecColor = (params) => {
  return service({
    url: '/productSpecColor/deleteProductSpecColor',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecColor
// @Summary 批量删除产品规格-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除产品规格-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecColor/deleteProductSpecColor [delete]
export const deleteProductSpecColorByIds = (params) => {
  return service({
    url: '/productSpecColor/deleteProductSpecColorByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecColor
// @Summary 更新产品规格-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecColor true "更新产品规格-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productSpecColor/updateProductSpecColor [put]
export const updateProductSpecColor = (data) => {
  return service({
    url: '/productSpecColor/updateProductSpecColor',
    method: 'put',
    data
  })
}

// @Tags ProductSpecColor
// @Summary 用id查询产品规格-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductSpecColor true "用id查询产品规格-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productSpecColor/findProductSpecColor [get]
export const findProductSpecColor = (params) => {
  return service({
    url: '/productSpecColor/findProductSpecColor',
    method: 'get',
    params
  })
}

// @Tags ProductSpecColor
// @Summary 分页获取产品规格-颜色列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取产品规格-颜色列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productSpecColor/getProductSpecColorList [get]
export const getProductSpecColorList = (params) => {
  return service({
    url: '/productSpecColor/getProductSpecColorList',
    method: 'get',
    params
  })
}
